package main

import "fmt"

// 存储学员信息  id 姓名 年龄 分数
// 根据 id 获取学员信息

func main() {
	studentMap := make(map[string]map[string]int, 10)
	studentMap["Jack"] = make(map[string]int, 3)
	studentMap["Jack"]["id"] = 1
	studentMap["Jack"]["age"] = 18
	studentMap["Jack"]["score"] = 90

	studentMap["Tom"] = make(map[string]int, 3)
	studentMap["Tom"]["id"] = 2
	studentMap["Tom"]["age"] = 20
	studentMap["Tom"]["score"] = 66

	for k, v := range studentMap {
		fmt.Println(k)
		for k2, v2 := range v {
			fmt.Println(k2, v2)
		}
	}

}
